<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta name='apple-touch-fullscreen' content='yes'>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta content="fullscreen=yes,preventMove=no" name="ML-Config">
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<meta name="format-detection" content="telephone=no,email=no,address=no"/>
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
<title>VIP开通会员</title>
<link rel="stylesheet" href="/style/lh/css/style.css?ver=20190409">
<link type="text/css" rel="stylesheet" href="/style/css/sweet-alert.css?ver=20190402">
<script src="/style/lh/js/style.js"></script>
<script src="/style/new/js/jquery-1.12.0.min.js"></script>
<script type="text/javascript" src="/style/js/sweet-alert.min.js?ver=20190402"></script>
</head>
<body style="background:#FA2D0B;">
    <div class="member-bg pre">
        <div class="member-img pab">
            <h3>开通会员</h3>
            <div class="member-view">
                <img src="/style/lh/images/member3.png" alt="" class="member-view-img">
                <div class="member-view-right">
                    <img src="/style/lh/images/member4.png" alt="">
                    <h4>胶原蛋白肽 1套(2盒)</h4>
                    <em>￥1700.0</em>
                    <p>限时升级价 <b>￥</b><i>1400.0</i></p>
                    <span><i>推荐指数</i> <img src="/style/lh/images/member5.png" alt=""><img src="/style/lh/images/member5.png" alt=""><img src="/style/lh/images/member5.png" alt=""><img src="/style/lh/images/member5.png" alt=""><img src="/style/lh/images/member5.png" alt=""></span>
                </div>
            </div>
        </div>
        <div class="member-btn" onclick="_open()">
            开通会员
        </div>
    </div>
</body>
<form id="frm" method="post" action="save_member">
<input type="hidden" id="money" name="money" value="0">
</form>

<script type="text/javascript">
var _p= <?=$this->vip_price >0 ?$this->vip_price:0;?>

function _open()
{
	if(_p >0){
        swal({
            title: "确定开通特权会员 ￥"+_p+" 吗？",
            type: "warning",
            timer: 30000,
            showCancelButton: true,
            confirmButtonText: "确定",
            cancelButtonText: "取消",
            closeOnConfirm: false,
            closeOnCancel: true
        }, function(isConfirm) {
            if (isConfirm) {
                $("#money").prop("value",_p);
                $("#frm").submit();
            }
        });
	}
    
}
</script>
</html>